package com.cpj.base.model;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.HashMap;
import java.util.Map;

/**
 * 拍牌用户表
 * @author zhuxudong
 */
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class User  {
	
	public interface TYPE {
		public static final String YONGHU = "1";
		public static final String HUANGNIU = "2";
		public static final String PAISHOU = "3";
	}
	
	private static final long serialVersionUID = 21372296538552633L;

	public Integer getCounts() {
		return counts;
	}

	public void setCounts(Integer counts) {
		this.counts = counts;
	}

	private Integer counts;//统计人数
	private Integer userId;
	private String userName;
	private String userType;
	private String password;
	private String payPassword;
	private String idcardNo;
	private String idcardUrl;
	private String realName;
	private String headUrl;
	private String nickName;
	private String isLock;
	private String deleted;
	private String addTime;
	private String updateTime;
	private String addIp;
	private String isProxy;
	private String inviteCode;
	private String registerFrom;
	private String originalFrom;

	public String getRegister() {
		return register;
	}

	public void setRegister(String register) {
		this.register = register;
	}

	private String register;


	private Shop shop;
	
	private String userIds;
	private String loginFrom;
	//是否是首次登陆，对于首次登陆的用户给予优惠
	private Boolean isFirstLogin;
	private String openid;
	private String unionid;
	private Integer agentId;//代理人专享团队id（便于保存在session中）
	
	private Integer loginId;//记录登录id，退出时，更新相应的登录

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	private String token;

	public String getNewUser() {
		return newUser;
	}

	public void setNewUser(String newUser) {
		this.newUser = newUser;
	}

	private String newUser;
	
	public Shop getShop() {
		return shop;
	}
	public void setShop(Shop shop) {
		this.shop = shop;
	}
	public Boolean getIsFirstLogin() {
		return isFirstLogin;
	}
	public void setIsFirstLogin(Boolean isFirstLogin) {
		this.isFirstLogin = isFirstLogin;
	}
	public String getLoginFrom() {
		return loginFrom;
	}
	public void setLoginFrom(String loginFrom) {
		this.loginFrom = loginFrom;
	}
	public String getHeadUrl() {
		return headUrl;
	}
	public void setHeadUrl(String headUrl) {
		this.headUrl = headUrl;
	}
	public String getUserIds() {
		return userIds;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public void setUserIds(String userIds) {
		this.userIds = userIds;
	}

	public String getRegisterFrom() {
		return registerFrom;
	}

	public void setRegisterFrom(String registerFrom) {
		this.registerFrom = registerFrom;
	}

	public String getOriginalFrom() {
		return originalFrom;
	}

	public void setOriginalFrom(String originalFrom) {
		this.originalFrom = originalFrom;
	}


	//预留参数存储器
	private Map<Object, Object> map = new HashMap<Object, Object>();

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getPayPassword() {
		return payPassword;
	}

	public void setPayPassword(String payPassword) {
		this.payPassword = payPassword;
	}

	public String getIdcardNo() {
		return idcardNo;
	}

	public void setIdcardNo(String idcardNo) {
		this.idcardNo = idcardNo;
	}

	public String getIdcardUrl() {
		return idcardUrl;
	}

	public void setIdcardUrl(String idcardUrl) {
		this.idcardUrl = idcardUrl;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getDeleted() {
		return deleted;
	}

	public void setDeleted(String deleted) {
		this.deleted = deleted;
	}

	public String getAddTime() {
		return addTime;
	}

	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getAddIp() {
		return addIp;
	}

	public void setAddIp(String addIp) {
		this.addIp = addIp;
	}

	public Map<Object, Object> getMap() {
		return map;
	}

	public void setMap(Map<Object, Object> map) {
		this.map = map;
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIsLock() {
		return isLock;
	}

	public void setIsLock(String isLock) {
		this.isLock = isLock;
	}

	public String getIsProxy() {
		return isProxy;
	}

	public void setIsProxy(String isProxy) {
		this.isProxy = isProxy;
	}

	public String getInviteCode() {
		return inviteCode;
	}

	public void setInviteCode(String inviteCode) {
		this.inviteCode = inviteCode;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	public Integer getAgentId() {
		return agentId;
	}

	public void setAgentId(Integer agentId) {
		this.agentId = agentId;
	}
	public Integer getLoginId() {
		return loginId;
	}
	public void setLoginId(Integer loginId) {
		this.loginId = loginId;
	}
	public String getUnionid() {
		return unionid;
	}
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	@Override
	public String toString() {
		return "User [userId=" + userId + ", userName=" + userName + ", userType=" + userType + ", password=" + password
				+ ", payPassword=" + payPassword + ", idcardNo=" + idcardNo + ", idcardUrl=" + idcardUrl + ", realName="
				+ realName + ", isLock=" + isLock + ", deleted=" + deleted + ", addTime=" + addTime + ", updateTime="
				+ updateTime + ", addIp=" + addIp + ", inviteCode=" + inviteCode + ", map=" + map + "]";
	}
}